<?php
class EnvironmentTest extends Environment
{
	
	public function __construct(){
		$this->setDebugMode(false);
	}

	public function getConfiguration()
	{
		$parentConfiguration = parent::getConfiguration();
		$parentConfiguration['name'] = $parentConfiguration['name'] .' TEST';
		return $parentConfiguration;
	}
	
	public function getComponentLog()
	{
		return array(
						'class'=>'CLogRouter',
						'routes'=>array(
											array(
												'class'=>'CEmailLogRoute',
							                    'levels'=>'error, warning',
							                    'emails'=>'juanllanes@gmail.com',
											),
											array(
													'class'=>'CFileLogRoute',
													'levels'=>'error, warning, trace, info',
											),
						),
		);
	}
	
	public function getComponentDB()
	{
		return array(
						'connectionString' => 'mysql:host=localhost;dbname=southfq5_cup_autogestion_test',
						'emulatePrepare' => true,
						'username' => 'southfq5_sscupau',
						'password' => 'Cambiar1977',
						'charset' => 'utf8',
					 	'enableProfiling'=>true,
					 	'enableParamLogging'=>true,
		
						'schemaCachingDuration'=>3600,
		);
	}
}
?>